Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: improve emissions module coverage #1955

Merged
merged 17 commits into from
Apr 2, 2024
Merged

Conversation

skosito
Copy link
Contributor

@skosito skosito commented Mar 27, 2024

Description

Improves coverage for emissions module from 52.49% to 91.83%. Only uncovered file is types/events.go, but i think it should be moved one level above next to abci.go, because those events are used there and not in types?

Closes: #1741

Type of change

Tests

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

Checklist:

  • I have added unit tests that prove my fix feature works

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.17%. Comparing base (f0dfb6c) to head (4847464).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1955      +/-   ##
===========================================
+ Coverage    54.00%   55.17%   +1.17%     
===========================================
  Files          241      241              
  Lines        13535    13537       +2     
===========================================
+ Hits          7309     7469     +160     
+ Misses        5779     5624     -155     
+ Partials       447      444       -3     
Files Coverage Δ
x/emissions/abci.go 91.30% <100.00%> (+11.95%) ⬆️
x/emissions/keeper/block_rewards_components.go 91.66% <ø> (+77.08%) ⬆️
x/emissions/keeper/grpc_query_list_balances.go 100.00% <ø> (+100.00%) ⬆️
...ions/keeper/grpc_query_show_available_emissions.go 100.00% <100.00%> (+100.00%) ⬆️
x/emissions/types/params.go 98.05% <100.00%> (+83.49%) ⬆️

... and 1 file with indirect coverage changes

@skosito skosito changed the title test: improve emissions coverage test: improve emissions module coverage Mar 28, 2024
@skosito skosito marked this pull request as ready for review March 28, 2024 00:12
Copy link
Contributor

@kingpinXD kingpinXD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great ,left some minor comments

Copy link
Member

@lumtis lumtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very complete to me

@skosito skosito requested a review from kingpinXD March 28, 2024 12:13
@skosito skosito merged commit 62999f6 into develop Apr 2, 2024
21 checks passed
@skosito skosito deleted the test-emissions-module branch April 2, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

High-priority code coverage for emissions
3 participants